package com.cx.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department {
    @TableId
    private Integer depId;
    private String depNo;
    private String depName;

    @TableField(exist = false)
    private List<Employee> employeeList;

    public Department(String depNo, String depName) {
        this.depNo = depNo;
        this.depName = depName;
    }

    public Department(Integer depId, String depNo, String depName) {
        this.depId = depId;
        this.depNo = depNo;
        this.depName = depName;
    }

}
